﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CRM.Models
{
    // ?? 假的表
    [Table("config_company")]
    [Comment("公司配置")]
    [Index(nameof(Company), Name = "Uid")]
    public class CompanyConfig :BaseModel
    {
        [Column("oid"), Comment("贴牌OEM ID(分区id)"), Required]
        public int OemId { get; set; }
        [Column("cid"), Comment("关联公司"), Required]
        public Company Company;
    }
}